import request from '@/utils/request'

export function downloadExcel(params){
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/PurchaseProduct/excel',
    method: 'get',
    responseType:'blob',
    params,
    timeout:0
  })
}


export function getList(params) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/PurchaseProduct/index',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/PurchaseProduct/edit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/PurchaseProduct/del',
    method: 'post',
    data,
  })
}
